<#assign _title="${page.getTitle()}">
<#include 'includes/header.ftl'>
<h1>Diysearch</h1>
<hr/>
${page.getElementByName("INTRO_MESSAGE").getValue()}
<p/>

<div>
	<#list links as link>
		<div>
			<a href="/links/${link.id}">${link.title}</a><br/>
			${link.description}<br/>
			(${link.getComments().size()}) comments 
			<#if (link.getTags().size() > 0)>
			| tags: 
			<#list link.getTags() as tag>
				<a href="/tag/${tag.name}">${tag.name}</a> 
			</#list>
			</#if>
		</div>
		<br/>
	</#list>
</div>

<#include 'includes/footer.ftl'>